package com.example.login.service;

import com.example.login.domain.dto.EmployeeLoginCaptchaDTO;
import com.example.login.domain.dto.EmployeeLoginPasswordDTO;
import com.example.login.domain.dto.EmployeeRegisterDTO;
import com.example.login.domain.vo.EmployeeLoginVO;

public interface EmployeeAuthService {

    /**
     * 员工验证码登录
     *
     * @param employeeLoginCaptchaDTO
     * @return
     */
    EmployeeLoginVO loginByCaptcha(EmployeeLoginCaptchaDTO employeeLoginCaptchaDTO);

    /**
     * 员工密码登录
     *
     * @param employeeLoginDTO
     * @return
     */
    EmployeeLoginVO loginByPassword(EmployeeLoginPasswordDTO employeeLoginDTO);

    /**
     * 员工注册
     *
     * @param employeeRegisterDTO
     * @return
     */
    void register(EmployeeRegisterDTO employeeRegisterDTO);

    /**
     * 校验手机号是否被注册
     * @param phone
     */
    Boolean checkPhone(String phone);


}
